/*
 * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

package com.inspur.edp.lcm.metadata.core.domain;

import java.time.LocalDateTime;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 记录用户最近打开元数据操作
 */
@Data
@Accessors(chain = true)
@Entity
@Table(name = "gspmdrecentop")
public class GspMdRecentOp {
    @Id
    private String id;
    // 用户id
    private String userId;
    // 工作空间id
    private String wsId;
    // 业务对象id
    private String boID;
    // 元数据全路径
    private String mdPath;
    // 元数据编号
    private String mdCode;
    // 元数据名称
    private String mdName;
    private LocalDateTime createdTime;
    private LocalDateTime lastModifiedTime;
}
